.class Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;
.super Lm/framework/ui/widget/pulltorefresh/PullToRefreshListAdapter;
.source "FollowList.java"

# interfaces
.implements Landroid/os/Handler$Callback;
.implements Lcn/sharesdk/framework/PlatformActionListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcn/sharesdk/onekeyshare/FollowList;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "FollowAdapter"
.end annotation


# instance fields
.field private bmChd:Landroid/graphics/Bitmap;

.field private bmUnch:Landroid/graphics/Bitmap;

.field private curPage:I

.field private follows:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcn/sharesdk/onekeyshare/FollowList$Following;",
            ">;"
        }
    .end annotation
.end field

.field private hasNext:Z

.field private llHeader:Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;

.field private map:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Lcn/sharesdk/onekeyshare/FollowList$Following;",
            ">;"
        }
    .end annotation
.end field

.field private platform:Lcn/sharesdk/framework/Platform;


# direct methods
.method public constructor <init>(Lm/framework/ui/widget/pulltorefresh/PullToRefreshView;)V
    .registers 5
    .param p1, "view"    # Lm/framework/ui/widget/pulltorefresh/PullToRefreshView;

    .prologue
    .line 171
    invoke-direct {p0, p1}, Lm/framework/ui/widget/pulltorefresh/PullToRefreshListAdapter;-><init>(Lm/framework/ui/widget/pulltorefresh/PullToRefreshView;)V

    .line 172
    const/4 v1, -0x1

    iput v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->curPage:I

    .line 173
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->hasNext:Z

    .line 174
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    iput-object v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    .line 175
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->follows:Ljava/util/ArrayList;

    .line 177
    new-instance v1, Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;

    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->llHeader:Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;

    .line 179
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "auth_follow_cb_chd"

    invoke-static {v1, v2}, Lcn/sharesdk/framework/utils/R;->getBitmapRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v0

    .line 180
    .local v0, "resId":I
    if-lez v0, :cond_38

    .line 181
    invoke-virtual {p1}, Lm/framework/ui/widget/pulltorefresh/PullToRefreshView;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-static {v1, v0}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->bmChd:Landroid/graphics/Bitmap;

    .line 183
    :cond_38
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "auth_follow_cb_unc"

    invoke-static {v1, v2}, Lcn/sharesdk/framework/utils/R;->getBitmapRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v0

    .line 184
    if-lez v0, :cond_4e

    .line 185
    invoke-virtual {p1}, Lm/framework/ui/widget/pulltorefresh/PullToRefreshView;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-static {v1, v0}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->bmUnch:Landroid/graphics/Bitmap;

    .line 187
    :cond_4e
    return-void
.end method

.method private next()V
    .registers 5

    .prologue
    .line 195
    iget-boolean v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->hasNext:Z

    if-eqz v0, :cond_10

    .line 196
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->platform:Lcn/sharesdk/framework/Platform;

    const/16 v1, 0xf

    iget v2, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->curPage:I

    add-int/lit8 v2, v2, 0x1

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcn/sharesdk/framework/Platform;->listFriend(IILjava/lang/String;)V

    .line 198
    :cond_10
    return-void
.end method

.method private parseList(Ljava/util/HashMap;)Ljava/util/ArrayList;
    .registers 22
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)",
            "Ljava/util/ArrayList",
            "<",
            "Lcn/sharesdk/onekeyshare/FollowList$Following;",
            ">;"
        }
    .end annotation

    .prologue
    .line 320
    .local p1, "res":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    if-eqz p1, :cond_8

    invoke-virtual/range {p1 .. p1}, Ljava/util/HashMap;->size()I

    move-result v17

    if-gtz v17, :cond_a

    .line 321
    :cond_8
    const/4 v3, 0x0

    .line 416
    :cond_9
    :goto_9
    return-object v3

    .line 324
    :cond_a
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 325
    .local v3, "data":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcn/sharesdk/onekeyshare/FollowList$Following;>;"
    const-string v17, "SinaWeibo"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->platform:Lcn/sharesdk/framework/Platform;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v17

    if-eqz v17, :cond_d4

    .line 328
    const-string v17, "users"

    .line 329
    move-object/from16 v0, p1

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v16

    check-cast v16, Ljava/util/ArrayList;

    .line 330
    .local v16, "users":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-virtual/range {v16 .. v16}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v17

    :cond_31
    :goto_31
    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-eqz v18, :cond_a7

    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v15

    check-cast v15, Ljava/util/HashMap;

    .line 331
    .local v15, "user":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v18, "id"

    move-object/from16 v0, v18

    invoke-virtual {v15, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v14

    .line 332
    .local v14, "uid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v14}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v18

    if-nez v18, :cond_31

    .line 333
    new-instance v5, Lcn/sharesdk/onekeyshare/FollowList$Following;

    const/16 v18, 0x0

    move-object/from16 v0, v18

    invoke-direct {v5, v0}, Lcn/sharesdk/onekeyshare/FollowList$Following;-><init>(Lcn/sharesdk/onekeyshare/FollowList$1;)V

    .line 334
    .local v5, "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    iput-object v14, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->uid:Ljava/lang/String;

    .line 335
    const-string v18, "name"

    move-object/from16 v0, v18

    invoke-virtual {v15, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->screeName:Ljava/lang/String;

    .line 336
    const-string v18, "description"

    move-object/from16 v0, v18

    invoke-virtual {v15, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->description:Ljava/lang/String;

    .line 337
    const-string v18, "profile_image_url"

    move-object/from16 v0, v18

    invoke-virtual {v15, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->icon:Ljava/lang/String;

    .line 338
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    move-object/from16 v18, v0

    iget-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->uid:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    invoke-virtual {v0, v1, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 339
    invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_31

    .line 342
    .end local v5    # "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    .end local v14    # "uid":Ljava/lang/String;
    .end local v15    # "user":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_a7
    const-string v17, "total_number"

    move-object/from16 v0, p1

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v17

    check-cast v17, Ljava/lang/Integer;

    invoke-virtual/range {v17 .. v17}, Ljava/lang/Integer;->intValue()I

    move-result v17

    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Ljava/util/HashMap;->size()I

    move-result v18

    move/from16 v0, v17

    move/from16 v1, v18

    if-le v0, v1, :cond_d1

    const/16 v17, 0x1

    :goto_c9
    move/from16 v0, v17

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->hasNext:Z

    goto/16 :goto_9

    :cond_d1
    const/16 v17, 0x0

    goto :goto_c9

    .line 344
    .end local v16    # "users":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    :cond_d4
    const-string v17, "TencentWeibo"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->platform:Lcn/sharesdk/framework/Platform;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v17

    if-eqz v17, :cond_1b7

    .line 345
    const-string v17, "hasnext"

    move-object/from16 v0, p1

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v17

    check-cast v17, Ljava/lang/Integer;

    invoke-virtual/range {v17 .. v17}, Ljava/lang/Integer;->intValue()I

    move-result v17

    if-nez v17, :cond_1b3

    const/16 v17, 0x1

    :goto_fa
    move/from16 v0, v17

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->hasNext:Z

    .line 348
    const-string v17, "info"

    .line 349
    move-object/from16 v0, p1

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/util/ArrayList;

    .line 350
    .local v8, "infos":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-virtual {v8}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v17

    :cond_110
    :goto_110
    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-eqz v18, :cond_9

    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/HashMap;

    .line 351
    .local v7, "info":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v18, "name"

    move-object/from16 v0, v18

    invoke-virtual {v7, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v14

    .line 352
    .restart local v14    # "uid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v14}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v18

    if-nez v18, :cond_110

    .line 353
    new-instance v5, Lcn/sharesdk/onekeyshare/FollowList$Following;

    const/16 v18, 0x0

    move-object/from16 v0, v18

    invoke-direct {v5, v0}, Lcn/sharesdk/onekeyshare/FollowList$Following;-><init>(Lcn/sharesdk/onekeyshare/FollowList$1;)V

    .line 354
    .restart local v5    # "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    const-string v18, "nick"

    move-object/from16 v0, v18

    invoke-virtual {v7, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->screeName:Ljava/lang/String;

    .line 355
    iput-object v14, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->uid:Ljava/lang/String;

    .line 357
    const-string v18, "tweet"

    .line 358
    move-object/from16 v0, v18

    invoke-virtual {v7, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/util/ArrayList;

    .line 359
    .local v13, "tweets":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    const/4 v6, 0x0

    .local v6, "i":I
    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v18

    move/from16 v0, v18

    if-ge v6, v0, :cond_17a

    .line 360
    invoke-virtual {v13, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Ljava/util/HashMap;

    .line 361
    .local v12, "tweet":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v18, "text"

    move-object/from16 v0, v18

    invoke-virtual {v12, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->description:Ljava/lang/String;

    .line 364
    .end local v12    # "tweet":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_17a
    new-instance v18, Ljava/lang/StringBuilder;

    invoke-direct/range {v18 .. v18}, Ljava/lang/StringBuilder;-><init>()V

    const-string v19, "head"

    move-object/from16 v0, v19

    invoke-virtual {v7, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v19

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    const-string v19, "/100"

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->icon:Ljava/lang/String;

    .line 365
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    move-object/from16 v18, v0

    iget-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->uid:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    invoke-virtual {v0, v1, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 366
    invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_110

    .line 345
    .end local v5    # "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    .end local v6    # "i":I
    .end local v7    # "info":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v8    # "infos":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .end local v13    # "tweets":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .end local v14    # "uid":Ljava/lang/String;
    :cond_1b3
    const/16 v17, 0x0

    goto/16 :goto_fa

    .line 370
    :cond_1b7
    const-string v17, "Facebook"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->platform:Lcn/sharesdk/framework/Platform;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v17

    if-eqz v17, :cond_273

    .line 373
    const-string v17, "data"

    .line 374
    move-object/from16 v0, p1

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/ArrayList;

    .line 375
    .local v4, "datas":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-virtual {v4}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v17

    :cond_1d9
    :goto_1d9
    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-eqz v18, :cond_257

    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 376
    .local v2, "d":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v18, "id"

    move-object/from16 v0, v18

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v14

    .line 377
    .restart local v14    # "uid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v14}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v18

    if-nez v18, :cond_1d9

    .line 378
    new-instance v5, Lcn/sharesdk/onekeyshare/FollowList$Following;

    const/16 v18, 0x0

    move-object/from16 v0, v18

    invoke-direct {v5, v0}, Lcn/sharesdk/onekeyshare/FollowList$Following;-><init>(Lcn/sharesdk/onekeyshare/FollowList$1;)V

    .line 379
    .restart local v5    # "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    iput-object v14, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->uid:Ljava/lang/String;

    .line 380
    const-string v18, "name"

    move-object/from16 v0, v18

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->screeName:Ljava/lang/String;

    .line 382
    const-string v18, "picture"

    move-object/from16 v0, v18

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/util/HashMap;

    .line 383
    .local v11, "picture":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    if-eqz v11, :cond_242

    .line 385
    const-string v18, "data"

    move-object/from16 v0, v18

    invoke-virtual {v11, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/util/HashMap;

    .line 386
    .local v9, "pData":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    if-eqz v2, :cond_242

    .line 387
    const-string v18, "url"

    move-object/from16 v0, v18

    invoke-virtual {v9, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->icon:Ljava/lang/String;

    .line 390
    .end local v9    # "pData":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_242
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    move-object/from16 v18, v0

    iget-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->uid:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    invoke-virtual {v0, v1, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 391
    invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1d9

    .line 395
    .end local v2    # "d":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v5    # "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    .end local v11    # "picture":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v14    # "uid":Ljava/lang/String;
    :cond_257
    const-string v17, "paging"

    move-object/from16 v0, p1

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/util/HashMap;

    .line 396
    .local v10, "paging":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v17, "next"

    move-object/from16 v0, v17

    invoke-virtual {v10, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v17

    move/from16 v0, v17

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->hasNext:Z

    goto/16 :goto_9

    .line 398
    .end local v4    # "datas":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .end local v10    # "paging":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_273
    const-string v17, "Twitter"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->platform:Lcn/sharesdk/framework/Platform;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v17

    if-eqz v17, :cond_9

    .line 401
    const-string v17, "users"

    .line 402
    move-object/from16 v0, p1

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v16

    check-cast v16, Ljava/util/ArrayList;

    .line 403
    .restart local v16    # "users":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-virtual/range {v16 .. v16}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v17

    :cond_295
    :goto_295
    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-eqz v18, :cond_9

    invoke-interface/range {v17 .. v17}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v15

    check-cast v15, Ljava/util/HashMap;

    .line 404
    .restart local v15    # "user":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v18, "screen_name"

    move-object/from16 v0, v18

    invoke-virtual {v15, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v14

    .line 405
    .restart local v14    # "uid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v14}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v18

    if-nez v18, :cond_295

    .line 406
    new-instance v5, Lcn/sharesdk/onekeyshare/FollowList$Following;

    const/16 v18, 0x0

    move-object/from16 v0, v18

    invoke-direct {v5, v0}, Lcn/sharesdk/onekeyshare/FollowList$Following;-><init>(Lcn/sharesdk/onekeyshare/FollowList$1;)V

    .line 407
    .restart local v5    # "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    iput-object v14, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->uid:Ljava/lang/String;

    .line 408
    const-string v18, "name"

    move-object/from16 v0, v18

    invoke-virtual {v15, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->screeName:Ljava/lang/String;

    .line 409
    const-string v18, "description"

    move-object/from16 v0, v18

    invoke-virtual {v15, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->description:Ljava/lang/String;

    .line 410
    const-string v18, "profile_image_url"

    move-object/from16 v0, v18

    invoke-virtual {v15, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->icon:Ljava/lang/String;

    .line 411
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    move-object/from16 v18, v0

    iget-object v0, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->uid:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    invoke-virtual {v0, v1, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 412
    invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_295
.end method


# virtual methods
.method public getCount()I
    .registers 2

    .prologue
    .line 281
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->follows:Ljava/util/ArrayList;

    if-nez v0, :cond_6

    const/4 v0, 0x0

    :goto_5
    return v0

    :cond_6
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->follows:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_5
.end method

.method public getHeaderView()Landroid/view/View;
    .registers 2

    .prologue
    .line 285
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->llHeader:Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;

    return-object v0
.end method

.method public getItem(I)Lcn/sharesdk/onekeyshare/FollowList$Following;
    .registers 3
    .param p1, "position"    # I

    .prologue
    .line 273
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->follows:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/onekeyshare/FollowList$Following;

    return-object v0
.end method

.method public bridge synthetic getItem(I)Ljava/lang/Object;
    .registers 3

    .prologue
    .line 159
    invoke-virtual {p0, p1}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->getItem(I)Lcn/sharesdk/onekeyshare/FollowList$Following;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .registers 4
    .param p1, "position"    # I

    .prologue
    .line 277
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 20
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 201
    const/4 v6, 0x0

    .line 202
    .local v6, "item":Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;
    if-nez p2, :cond_131

    .line 203
    new-instance v7, Landroid/widget/LinearLayout;

    invoke-virtual/range {p3 .. p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v12

    invoke-direct {v7, v12}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 204
    .local v7, "llItem":Landroid/widget/LinearLayout;
    new-instance v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;

    .end local v6    # "item":Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;
    const/4 v12, 0x0

    invoke-direct {v6, v12}, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;-><init>(Lcn/sharesdk/onekeyshare/FollowList$1;)V

    .line 205
    .restart local v6    # "item":Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;
    invoke-virtual {v7, v6}, Landroid/widget/LinearLayout;->setTag(Ljava/lang/Object;)V

    .line 206
    move-object/from16 p2, v7

    .line 208
    new-instance v12, Lm/framework/ui/widget/asyncview/AsyncImageView;

    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->getContext()Landroid/content/Context;

    move-result-object v13

    invoke-direct {v12, v13}, Lm/framework/ui/widget/asyncview/AsyncImageView;-><init>(Landroid/content/Context;)V

    iput-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->aivIcon:Lm/framework/ui/widget/asyncview/AsyncImageView;

    .line 209
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->getContext()Landroid/content/Context;

    move-result-object v12

    const/16 v13, 0x34

    invoke-static {v12, v13}, Lcn/sharesdk/framework/utils/R;->dipToPx(Landroid/content/Context;I)I

    move-result v4

    .line 210
    .local v4, "dp_52":I
    invoke-virtual/range {p3 .. p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v12

    const/16 v13, 0xa

    invoke-static {v12, v13}, Lcn/sharesdk/framework/utils/R;->dipToPx(Landroid/content/Context;I)I

    move-result v2

    .line 211
    .local v2, "dp_10":I
    invoke-virtual/range {p3 .. p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v12

    const/4 v13, 0x5

    invoke-static {v12, v13}, Lcn/sharesdk/framework/utils/R;->dipToPx(Landroid/content/Context;I)I

    move-result v3

    .line 212
    .local v3, "dp_5":I
    new-instance v10, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v10, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 213
    .local v10, "lpIcon":Landroid/widget/LinearLayout$LayoutParams;
    const/16 v12, 0x10

    iput v12, v10, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    .line 214
    invoke-virtual {v10, v2, v3, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 215
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->aivIcon:Lm/framework/ui/widget/asyncview/AsyncImageView;

    invoke-virtual {v12, v10}, Lm/framework/ui/widget/asyncview/AsyncImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 216
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->aivIcon:Lm/framework/ui/widget/asyncview/AsyncImageView;

    invoke-virtual {v7, v12}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 218
    new-instance v8, Landroid/widget/LinearLayout;

    invoke-virtual/range {p3 .. p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v12

    invoke-direct {v8, v12}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 219
    .local v8, "llText":Landroid/widget/LinearLayout;
    const/4 v12, 0x0

    invoke-virtual {v8, v12, v2, v2, v2}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    .line 220
    const/4 v12, 0x1

    invoke-virtual {v8, v12}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 221
    new-instance v11, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v12, -0x2

    const/4 v13, -0x2

    invoke-direct {v11, v12, v13}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 223
    .local v11, "lpText":Landroid/widget/LinearLayout$LayoutParams;
    const/16 v12, 0x10

    iput v12, v11, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    .line 224
    const/high16 v12, 0x3f800000

    iput v12, v11, Landroid/widget/LinearLayout$LayoutParams;->weight:F

    .line 225
    invoke-virtual {v8, v11}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 226
    invoke-virtual {v7, v8}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 228
    new-instance v12, Landroid/widget/TextView;

    invoke-virtual/range {p3 .. p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v13

    invoke-direct {v12, v13}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvName:Landroid/widget/TextView;

    .line 229
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvName:Landroid/widget/TextView;

    const/high16 v13, -0x1000000

    invoke-virtual {v12, v13}, Landroid/widget/TextView;->setTextColor(I)V

    .line 230
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvName:Landroid/widget/TextView;

    const/4 v13, 0x1

    const/high16 v14, 0x41900000

    invoke-virtual {v12, v13, v14}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 231
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvName:Landroid/widget/TextView;

    invoke-virtual {v12}, Landroid/widget/TextView;->setSingleLine()V

    .line 232
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvName:Landroid/widget/TextView;

    invoke-virtual {v8, v12}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 234
    new-instance v12, Landroid/widget/TextView;

    invoke-virtual/range {p3 .. p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v13

    invoke-direct {v12, v13}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvSign:Landroid/widget/TextView;

    .line 235
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvSign:Landroid/widget/TextView;

    const/high16 v13, 0x7f000000

    invoke-virtual {v12, v13}, Landroid/widget/TextView;->setTextColor(I)V

    .line 236
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvSign:Landroid/widget/TextView;

    const/4 v13, 0x1

    const/high16 v14, 0x41600000

    invoke-virtual {v12, v13, v14}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 237
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvSign:Landroid/widget/TextView;

    invoke-virtual {v12}, Landroid/widget/TextView;->setSingleLine()V

    .line 238
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvSign:Landroid/widget/TextView;

    invoke-virtual {v8, v12}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 240
    new-instance v12, Landroid/widget/ImageView;

    invoke-virtual/range {p3 .. p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v13

    invoke-direct {v12, v13}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->ivCheck:Landroid/widget/ImageView;

    .line 241
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->ivCheck:Landroid/widget/ImageView;

    const/4 v13, 0x0

    const/4 v14, 0x0

    const/4 v15, 0x0

    invoke-virtual {v12, v13, v14, v2, v15}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 242
    new-instance v9, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v12, -0x2

    const/4 v13, -0x2

    invoke-direct {v9, v12, v13}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 244
    .local v9, "lpCheck":Landroid/widget/LinearLayout$LayoutParams;
    const/16 v12, 0x10

    iput v12, v9, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    .line 245
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->ivCheck:Landroid/widget/ImageView;

    invoke-virtual {v12, v9}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 246
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->ivCheck:Landroid/widget/ImageView;

    invoke-virtual {v7, v12}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 251
    .end local v2    # "dp_10":I
    .end local v3    # "dp_5":I
    .end local v4    # "dp_52":I
    .end local v7    # "llItem":Landroid/widget/LinearLayout;
    .end local v8    # "llText":Landroid/widget/LinearLayout;
    .end local v9    # "lpCheck":Landroid/widget/LinearLayout$LayoutParams;
    .end local v10    # "lpIcon":Landroid/widget/LinearLayout$LayoutParams;
    .end local v11    # "lpText":Landroid/widget/LinearLayout$LayoutParams;
    :goto_eb
    invoke-virtual/range {p0 .. p1}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->getItem(I)Lcn/sharesdk/onekeyshare/FollowList$Following;

    move-result-object v5

    .line 252
    .local v5, "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvName:Landroid/widget/TextView;

    iget-object v13, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->screeName:Ljava/lang/String;

    invoke-virtual {v12, v13}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 253
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->tvSign:Landroid/widget/TextView;

    iget-object v13, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->description:Ljava/lang/String;

    invoke-virtual {v12, v13}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 254
    iget-object v13, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->ivCheck:Landroid/widget/ImageView;

    iget-boolean v12, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->checked:Z

    if-eqz v12, :cond_138

    move-object/from16 v0, p0

    iget-object v12, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->bmChd:Landroid/graphics/Bitmap;

    :goto_107
    invoke-virtual {v13, v12}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 255
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->isFling()Z

    move-result v12

    if-eqz v12, :cond_147

    .line 256
    iget-object v12, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->icon:Ljava/lang/String;

    invoke-static {v12}, Lm/framework/ui/widget/asyncview/BitmapProcessor;->getBitmapFromCache(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 257
    .local v1, "bm":Landroid/graphics/Bitmap;
    if-eqz v1, :cond_13d

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v12

    if-nez v12, :cond_13d

    .line 258
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->aivIcon:Lm/framework/ui/widget/asyncview/AsyncImageView;

    invoke-virtual {v12, v1}, Lm/framework/ui/widget/asyncview/AsyncImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 266
    .end local v1    # "bm":Landroid/graphics/Bitmap;
    :goto_123
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->getCount()I

    move-result v12

    add-int/lit8 v12, v12, -0x1

    move/from16 v0, p1

    if-ne v0, v12, :cond_130

    .line 267
    invoke-direct/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->next()V

    .line 269
    :cond_130
    return-object p2

    .line 248
    .end local v5    # "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    :cond_131
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v6

    .end local v6    # "item":Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;
    check-cast v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;

    .restart local v6    # "item":Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;
    goto :goto_eb

    .line 254
    .restart local v5    # "following":Lcn/sharesdk/onekeyshare/FollowList$Following;
    :cond_138
    move-object/from16 v0, p0

    iget-object v12, v0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->bmUnch:Landroid/graphics/Bitmap;

    goto :goto_107

    .line 260
    .restart local v1    # "bm":Landroid/graphics/Bitmap;
    :cond_13d
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->aivIcon:Lm/framework/ui/widget/asyncview/AsyncImageView;

    const/4 v13, 0x0

    const v14, 0x106000d

    invoke-virtual {v12, v13, v14}, Lm/framework/ui/widget/asyncview/AsyncImageView;->execute(Ljava/lang/String;I)V

    goto :goto_123

    .line 263
    .end local v1    # "bm":Landroid/graphics/Bitmap;
    :cond_147
    iget-object v12, v6, Lcn/sharesdk/onekeyshare/FollowList$FollowListItem;->aivIcon:Lm/framework/ui/widget/asyncview/AsyncImageView;

    iget-object v13, v5, Lcn/sharesdk/onekeyshare/FollowList$Following;->icon:Ljava/lang/String;

    invoke-virtual {v12, v13}, Lm/framework/ui/widget/asyncview/AsyncImageView;->execute(Ljava/lang/String;)V

    goto :goto_123
.end method

.method public handleMessage(Landroid/os/Message;)Z
    .registers 4
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 420
    iget v1, p1, Landroid/os/Message;->what:I

    if-gez v1, :cond_f

    .line 421
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->getContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->finish()V

    .line 431
    :goto_d
    const/4 v1, 0x0

    return v1

    .line 423
    :cond_f
    iget v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->curPage:I

    if-gtz v1, :cond_18

    .line 424
    iget-object v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->follows:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    .line 427
    :cond_18
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/util/ArrayList;

    .line 428
    .local v0, "data":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcn/sharesdk/onekeyshare/FollowList$Following;>;"
    iget-object v1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->follows:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 429
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->notifyDataSetChanged()V

    goto :goto_d
.end method

.method public onCancel(Lcn/sharesdk/framework/Platform;I)V
    .registers 4
    .param p1, "plat"    # Lcn/sharesdk/framework/Platform;
    .param p2, "action"    # I

    .prologue
    .line 301
    const/4 v0, -0x1

    invoke-static {v0, p0}, Lcn/sharesdk/framework/utils/UIHandler;->sendEmptyMessage(ILandroid/os/Handler$Callback;)Z

    .line 302
    return-void
.end method

.method public onComplete(Lcn/sharesdk/framework/Platform;ILjava/util/HashMap;)V
    .registers 7
    .param p1, "plat"    # Lcn/sharesdk/framework/Platform;
    .param p2, "action"    # I
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcn/sharesdk/framework/Platform;",
            "I",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 305
    .local p3, "res":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {p0, p3}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->parseList(Ljava/util/HashMap;)Ljava/util/ArrayList;

    move-result-object v0

    .line 306
    .local v0, "data":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcn/sharesdk/onekeyshare/FollowList$Following;>;"
    if-eqz v0, :cond_1f

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_1f

    .line 307
    iget v2, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->curPage:I

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->curPage:I

    .line 308
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 309
    .local v1, "msg":Landroid/os/Message;
    const/4 v2, 0x1

    iput v2, v1, Landroid/os/Message;->what:I

    .line 310
    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 311
    invoke-static {v1, p0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    .line 313
    .end local v1    # "msg":Landroid/os/Message;
    :cond_1f
    return-void
.end method

.method public onError(Lcn/sharesdk/framework/Platform;ILjava/lang/Throwable;)V
    .registers 4
    .param p1, "plat"    # Lcn/sharesdk/framework/Platform;
    .param p2, "action"    # I
    .param p3, "t"    # Ljava/lang/Throwable;

    .prologue
    .line 316
    invoke-virtual {p3}, Ljava/lang/Throwable;->printStackTrace()V

    .line 317
    return-void
.end method

.method public onPullDown(I)V
    .registers 3
    .param p1, "percent"    # I

    .prologue
    .line 289
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->llHeader:Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;

    invoke-virtual {v0, p1}, Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;->onPullDown(I)V

    .line 290
    return-void
.end method

.method public onRequest()V
    .registers 2

    .prologue
    .line 293
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->llHeader:Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;

    invoke-virtual {v0}, Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;->onRequest()V

    .line 294
    const/4 v0, -0x1

    iput v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->curPage:I

    .line 295
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->hasNext:Z

    .line 296
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->map:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    .line 297
    invoke-direct {p0}, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->next()V

    .line 298
    return-void
.end method

.method public onReversed()V
    .registers 2

    .prologue
    .line 435
    invoke-super {p0}, Lm/framework/ui/widget/pulltorefresh/PullToRefreshListAdapter;->onReversed()V

    .line 436
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->llHeader:Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;

    invoke-virtual {v0}, Lcn/sharesdk/onekeyshare/FollowList$PRTHeader;->reverse()V

    .line 437
    return-void
.end method

.method public setPlatform(Lcn/sharesdk/framework/Platform;)V
    .registers 2
    .param p1, "platform"    # Lcn/sharesdk/framework/Platform;

    .prologue
    .line 190
    iput-object p1, p0, Lcn/sharesdk/onekeyshare/FollowList$FollowAdapter;->platform:Lcn/sharesdk/framework/Platform;

    .line 191
    invoke-virtual {p1, p0}, Lcn/sharesdk/framework/Platform;->setPlatformActionListener(Lcn/sharesdk/framework/PlatformActionListener;)V

    .line 192
    return-void
.end method
